creditsGames=new Array();
creditsThemes=new Array();
containingDiv="miniclip-game-embed";
creditsMinWidth=750;
creditsMinHeight=500;
creditsGames[1]="8-ball-multiplayer-pool";
function buildWidget(b,f,g,a,c,e){
  if(creditsGames.indexOf(f)!=-1)
    {
      if(a<creditsMinWidth)
      {
        a=creditsMinWidth
      }
      if(c<creditsMinHeight)
      {
        c=creditsMinHeight
      }
    }
    if(g.indexOf("#")==-1)
    {g=g}
    else{g=g.replace("#","color/")}
  var d='<iframe src="http://www.miniclip.com/games/'+f+"/en/webgame.php?bodybg="+g+"&width="+a+"&height="+c+"&forcecredits="+e+'" width="'+a+'" height="'+c+'" frameborder="0" scrolling="no" style="border:none;"></iframe>';
  document.getElementById(b).innerHTML=d
}
window.onload=function(){
  var b=document.getElementById(containingDiv);
  var e=b.getAttribute("data-game-name");
  var f=b.getAttribute("data-theme");
  var a=parseInt(b.getAttribute("data-width"));
  var c=parseInt(b.getAttribute("data-height"));
  var d=b.getAttribute("data-credits");
  buildWidget(containingDiv,e,f,a,c,d)
};